package com.mentalhealthplatform.global.log.dto;

import com.mentalhealthplatform.global.log.enums.OperationStatus;
import com.mentalhealthplatform.global.log.enums.LogStatus; // 引入 LogStatus
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
public class ManagerLogDTO {

    private Long id;
    private String operatorUsername;
    private String systemModule;
    private String operationType;
    private String operationAddress;
    private String operationLocation;
    private OperationStatus operationStatus;
    private LogStatus logStatus;
    private LocalDateTime operationTime;
    private Long elapsedTime;


    public ManagerLogDTO() {}


    // 构造函数
    public ManagerLogDTO(Long id, String operatorUsername, String systemModule, String operationType,
                         String operationAddress, String operationLocation, OperationStatus operationStatus,
                         LogStatus logStatus, LocalDateTime operationTime, Long elapsedTime) {
        this.id = id;
        this.operatorUsername = operatorUsername;
        this.systemModule = systemModule;
        this.operationType = operationType;
        this.operationAddress = operationAddress;
        this.operationLocation = operationLocation;
        this.operationStatus = operationStatus;
        this.logStatus = logStatus;
        this.operationTime = operationTime;
        this.elapsedTime = elapsedTime;
    }

}
